package com.s666.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.*;
/**
 * 参数配置
 * @author lijin
 */
@Configuration
@ConfigurationProperties("params.ziku")
public class ParamsCfg {
    /**
     * 业务数据, 用于类型和状态等
     */
    private List<String> letters;
    private Map<Integer,String> zikuTypes = new HashMap<>();

    public Map<Integer, String> getZikuTypes() {
        return zikuTypes;
    }
    public void setZikuTypes(Map<Integer, String> zikuTypes) {
        this.zikuTypes = zikuTypes;
    }
    public List<String> getLetters() {
        return letters;
    }
    public void setLetters(List<String> letters) {
        this.letters = letters;
    }

    @Override
    public String toString() {
        return "ParamsCfg{" +
                "letters=" + letters +
                ", zikuTypes=" + zikuTypes +
                '}';
    }
}